﻿
using System;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Text;
using System.ComponentModel.DataAnnotations.Schema;
namespace WinnerCMS.Model
{
    /// <summary>
    /// 模型
    /// </summary>
    public partial class Model
    {
        public Model()
        {
            Categoryes = new List<Category>();
            Memus = new List<Memu>();
        }

        public byte Id { get; set; }
        public string ModelName { get; set; }
        public string DataTable { get; set; }
        [Index]
        public string BaseModel { get; set; }
        public string ContentName { get; set; }
        public string ContentUnit { get; set; }
        public string Filter { get; set; }
        public string Remark { get; set; }
        public string HtmlSavePath { get; set; }
        public byte MaxCategoryPageNo { get; set; }
        public string AdminUploadPath { get; set; }
        public short? AdminUploadSize { get; set; }
        public string AdminFileTypes { get; set; }
        public bool EnableMemberUpload { get; set; }
        public string MemberUploadPath { get; set; }
        public short? MemberUploadSize { get; set; }
        public string MemberFileTypes { get; set; }
        public bool AdminPass { get; set; }
        public bool CommentAutoPass { get; set; }
        /// <summary>
        /// 开启投稿功能
        /// </summary>
        public bool Contribution { get; set; }
        public byte SearchOption { get; set; }
        public byte IsShowNewSign { get; set; }
        public byte NewSignKeep { get; set; }
        public byte PageSize { get; set; }
        [Index]
        public bool? Hide { get; set; }

        public virtual ICollection<Category> Categoryes { get; set; }
        public virtual ICollection<Memu> Memus { get; set; }
    }
}